// index.ts
// 获取应用实例
const app = getApp<IAppOption>()

Page({
  data: {
   nowDate:new Date().toLocaleString().slice(0,10)
  },
  toSubPage:function(){
    console.log('click');
    wx.navigateTo({
      url: '../subPage/subPage'
    })
  },
  onLoad() {
    // @ts-ignore
    if (wx.getUserProfile) {
      this.setData({
        canIUseGetUserProfile: true
      })
    }
  },

})
